package com.android.syssetting.models

import android.app.Application
import android.util.Log
import android.util.Pair
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.android.syssetting.R
import com.camera.base.BaseApp
import com.camera.base.bean.CheckAppUpgradeResponse
import com.camera.base.inerface.DownloadCallback
import com.camera.base.util.APPUtil
import com.camera.base.util.FileUtil
import com.camera.base.util.StorageUtil
import com.camera.base.v.models.BaseViewModel
import com.camera.base.v.models.SystemNavBarViewModel
import com.camera.routemodule.routeinterface.RouterUtil
import dagger.hilt.android.lifecycle.HiltViewModel
import java.io.File
import javax.inject.Inject


@HiltViewModel
class SysSettingModel @Inject constructor(
) : BaseViewModel() {
    // 使用懒加载方式获取SystemNavBarViewModel实例
    val systemNavBarViewModel: SystemNavBarViewModel by lazy {
        SystemNavBarViewModel.getInstance(BaseApp.getApplication())
    }
    
    private val TAG = SysSettingModel::class.java.simpleName
    val version: MutableLiveData<String> by lazy {
        MutableLiveData<String>()
    }
    init {
        version.value = APPUtil.getAppVersionName(BaseApp.getApplication())
    }
}